﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Main.master" AutoEventWireup="true"
    CodeBehind="UserPassword.aspx.cs" Inherits="AUV5.Web.Pages.UserPassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#txbOldPwd").focus(function () {
                $("#lblMessage").val(""); //显示信息的label文本清空(未实现）
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="fl main_left">
        <p class="usertitle">
            个人资料
        </p>
        <div id="showList" class="userprofile">
            <div class="massage_left">
                <ul>
                    <li><a href="/Pages/UserBasicInfo.aspx">个人信息</a></li>
                    <li><a href="/Pages/UserPhoto.aspx">我的头像</a></li>
                    <li class="selected">修改密码</li>
                </ul>
            </div>
            <div class="massage_right userprofile_rightbg">
                <p class="passwordtxt">
                    安全起见，请经常修改密码
                </p>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="errorinfo"
                    ValidationGroup="pwdSave" ForeColor="#AF2417" />
                <p class="errorinfo" id="showMessage" runat="server" visible="false">
                </p>
                <p class="passwordtit">
                    修改密码<asp:HiddenField ID="hfIsChange" runat="server" />
                </p>
                <div class="passwordmain">
                    <table>
                        <tr>
                            <td class="style_one style_onecen">
                                旧密码
                            </td>
                            <td>
                                <asp:TextBox ValidationGroup="pwdSave" TextMode="Password" ID="txbOldPwd" runat="server"
                                    MaxLength="20" CssClass="alter_password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" CssClass="errormen"
                                    ErrorMessage="旧密码不能为空" ControlToValidate="txbOldPwd" ValidationGroup="pwdSave"
                                    Display="Dynamic" Text="*" ></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style_one style_onecen">
                                新密码
                            </td>
                            <td>
                                <asp:TextBox ValidationGroup="pwdSave" TextMode="Password" ID="txbNewpassord" runat="server"
                                    CssClass="alter_password" MaxLength="20"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="errormen"
                                    ErrorMessage="新密码不能为空" Text="*" ControlToValidate="txbNewpassord" ValidationGroup="pwdSave"
                                    Display="Dynamic" ></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator CssClass="errormen_ie" ID="RegularExpressionValidator2"
                                    ValidationGroup="pwdSave" ControlToValidate="txbNewpassord" ValidationExpression="\w{6,20}"
                                    runat="server" ErrorMessage="新密码为6-20位英文字母、数字、特殊符号组成" Text="新密码为6-20位" Display="Dynamic"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style_one style_onecen">
                                确认新密码
                            </td>
                            <td>
                                <asp:TextBox ValidationGroup="pwdSave" TextMode="Password" ID="txbRePassword" runat="server"
                                    CssClass="alter_password" MaxLength="20"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txbRePassword"
                                    ValidationGroup="pwdSave" ControlToValidate="txbNewpassord" CssClass="errormen"
                                    ErrorMessage="两次密码输入不一致" Display="Dynamic" ></asp:CompareValidator>
                            </td>
                        </tr>
                    </table>
                    <div class="saveborder">
                        <asp:ImageButton ID="imgbtnSave" runat="server" CssClass="userprofile_save" ImageUrl="/!images/btn_saveoff.jpg"
                            onmouseover="MM_swapImage('imgbtnSave','','/!images/btn_saveon.jpg',6)" onmouseout="MM_swapImgRestore()"
                            alt="保存" ValidationGroup="pwdSave" ClientIDMode="Static" OnClick="imgbtnSave_Click" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="fr main_right">
        <div class="basic_info">
            <p class="noreg">
                小贴士</p>
            <p class="basic_goregq">
                将登录密码设置为8位以上，数字、大小写字母、特殊字符混合型是相对安全的，但通常不方便记忆，在这里我们教您一个小窍门：尝试用字母“O”代替数字零等等。同时，我们建议您每隔半年修改一次登录密码。
            </p>
        </div>
        <p class="fr">
            <a href="">
                <img src="/!images/logo_privacy.jpg" /></a></p>
        <p class="clear">
        </p>
    </div>
    <p class="clear">
    </p>
</asp:Content>
